package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品管理对象 goods
 * 
 * @author Theo
 * @date 2022-11-03
 */
public class Goods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long id;

    /** 商品名 */
    @Excel(name = "商品名")
    private String name;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 分类id */
    @Excel(name = "分类id")
    private Integer categoryId;

    /** 价格 */
    @Excel(name = "价格")
    private Integer price;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 活动id */
    @Excel(name = "活动id")
    private Integer activeId;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String img;

    /** 评价id */
    @Excel(name = "评价id")
    private Integer evaluateId;

    /** 热度 */
    @Excel(name = "热度")
    private Integer hot;

    /** 秒杀价 */
    @Excel(name = "秒杀价")
    private Integer seckillPrice;

    /** 秒杀数量 */
    @Excel(name = "秒杀数量")
    private Integer seckillNum;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setCategoryId(Integer categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Integer getCategoryId() 
    {
        return categoryId;
    }
    public void setPrice(Integer price) 
    {
        this.price = price;
    }

    public Integer getPrice() 
    {
        return price;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setActiveId(Integer activeId) 
    {
        this.activeId = activeId;
    }

    public Integer getActiveId() 
    {
        return activeId;
    }
    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }
    public void setEvaluateId(Integer evaluateId) 
    {
        this.evaluateId = evaluateId;
    }

    public Integer getEvaluateId() 
    {
        return evaluateId;
    }
    public void setHot(Integer hot) 
    {
        this.hot = hot;
    }

    public Integer getHot() 
    {
        return hot;
    }
    public void setSeckillPrice(Integer seckillPrice) 
    {
        this.seckillPrice = seckillPrice;
    }

    public Integer getSeckillPrice() 
    {
        return seckillPrice;
    }
    public void setSeckillNum(Integer seckillNum) 
    {
        this.seckillNum = seckillNum;
    }

    public Integer getSeckillNum() 
    {
        return seckillNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("title", getTitle())
            .append("categoryId", getCategoryId())
            .append("price", getPrice())
            .append("status", getStatus())
            .append("activeId", getActiveId())
            .append("img", getImg())
            .append("evaluateId", getEvaluateId())
            .append("hot", getHot())
            .append("seckillPrice", getSeckillPrice())
            .append("seckillNum", getSeckillNum())
            .toString();
    }
}
